<div align="center">
<?php if($medio->getOpcion() == 'youtube' || $medio->getOpcion() == 'vimeo'):?>
        <object style="height: 390px; width: 640px">
            <param name="movie" value="<?php echo $medio->getURL()?>">
            <param name="allowFullScreen" value="true">
            <param name="allowScriptAccess" value="always">
            <embed src="<?php echo $medio->getURL()?>" type="application/x-shockwave-flash" allowfullscreen="true" allowScriptAccess="always" width="640" height="385">
        </object> 
<?php elseif ($medio->getOpcion()=='codigo'):?>
    <?php
        $codigo_0 = html_entity_decode($medio->getCodigo());
        $codigo =  preg_replace('/width="\d+" height="\d+"/', 'width="640" height="390"', $codigo_0);
        echo $codigo;
    ?>
<?php else:?>
    <img src="../../../uploads/videos/<?php echo $medio->getFuente()?>"/>
<?php endif; ?>
<p class="cita"><?php echo $medio->getPie() ?></p>
</div>
